cihga39871 / Atria

An accurate and ultra-fast adapter and quality trimming program for Illumina Next-Generation Sequencing (NGS) data.
Other
31 stars 3 forks source link

GC.safepoint #1

Closed cihga39871 closed 2 years ago

cihga39871 commented 2 years ago

Add GC.safepoint() in codes.

Inserts a point in the program where garbage collection may run. This can be useful in rare cases in multi-threaded programs where some threads are allocating memory (and hence may need to run GC) but other threads are doing only simple operations (no allocation, task switches, or I/O). Calling this function periodically in non-allocating threads allows garbage collection to run.

cihga39871 commented 2 years ago

Decided not to add GC.safepoint(). No speed gain.