javamemorygarbage-collectionsmartcardjavacard

Do I (and how do I) need to write my own ACOSJ Javacard garbage collection, or is it automatic?


Do I need to write my own garbage collection when using an ACOSJ javacard? Or is it done automatically?

If I do need to write my own - are there any useful guides online that show me how I can do this? Or any specific ways of doing this that I should do/avoid?


Solution

  • Garbage collection is supported from Javacard 3.0.2. You don't need to do implementation just transient variables are collected when calling JCSystem.requestObjectDeletion method in your applet.

    for more information check this link.