Put queued compilations in sets.

The GC will walk over that set to visit classes of methods being
compiled. This allows removing the creation of jclass whenever a task
gets enqueued.

Test: test.py
Bug: 218444629
Change-Id: I373b07e63c5f7ce71d023cad53904455411f5673
5 files changed