Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the use cases of JCGO_NOGC macro?

cases macro
0
Posted

What are the use cases of JCGO_NOGC macro?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123