The javaLib.removeAll() system function removes all identifiers and objects from the EGL Java™ object space.
By invoking the system functions javaLib.remove() or javaLib.removeAll(), your code allows the Java Virtual Machine to perform garbage collection in the EGL Java object space. If you do not invoke a system function to remove an object from the object space, the memory is not recovered during the run time of any program that has access to the object space.
For more about the EGL Java object space in which javaLib.removeAll() and similar functions operate, see Java access functions. EGL maintains this method of Java access for compatibility with earlier versions. For new code, use the more powerful ExternalType syntax; for more information, see ExternalType part.