What are the use cases of JCGO_NOGC macro?
JCGO_NOGC macro instructs the compiler to exclude the garbage collection support from your application. There are several cases where you may succeed without GC: • the program terminates quickly (e.g. some utility just processes input data and exists); • the program does not allocate objects (or does allocate only limited number of them – this is a so-called “object reuse” pattern); • you define (and call there necessary) a JNI function that calls free() for a given object.