Page 1 of 1

Test for Garbage Collection to evaluate

Posted: Sun Jun 17, 2018 12:48 pm
by shimizus3106
Hello, member

I'm looking for any tests,applet to evaluate Garbage Collection on JavaCard.

Could you let me know any useful,available one ?

Or Please let me know any other good method to do ?

thx

Re: Test for Garbage Collection to evaluate

Posted: Wed Jun 20, 2018 7:54 am
by stm32
Calling the JCSystem.requestObjectDeletion give a signal to the JCRE(java card runtime environment) to be ready for the Garbage Collection. New something in the INSTALL method or a special APDU command process(new some objects), and SET obj to NULL (this is very important)in another APDU command process function then call this method JCSystem.requestObjectDeletion.
When deleting a package or an applet instance(I'm not very sure, someone can correct this point), a Garbage Collection will also be performed internally.