jvmti daemon thread and garbage collection

T

teds.tango1

How to make sure that a jvmti agent’s daemon thread does not run
during garbage collection..

I could wake daemonup my daemon on ‘gc_finish’ event - however this
does not guarantee that a new GC will not occur before daemon
finished its run.
I understand, I must not block (on a monitor) the ‘gc thread’ that
is starting a new GC.

Am I missing something or it is just impossible to achieve?
Thank you.
Kind regards,
ted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top