RESOLVED FIXED 115594
fourthTier: CodeBlock should be RefCounted
https://bugs.webkit.org/show_bug.cgi?id=115594
Summary fourthTier: CodeBlock should be RefCounted
Filip Pizlo
Reported 2013-05-04 13:43:53 PDT
This will get rid of a bunch of weird ownership rules, and make the implementation of concurrent compilation a heck of a lot easier.
Attachments
the patch (33.02 KB, patch)
2013-05-09 18:28 PDT, Filip Pizlo
ggaren: review+
Geoffrey Garen
Comment 1 2013-05-04 13:50:37 PDT
Can we use GC for this instead? Inside the GC heap, it's easier when GC objects point to other GC objects.
Filip Pizlo
Comment 2 2013-05-04 13:54:23 PDT
(In reply to comment #1) > Can we use GC for this instead? Inside the GC heap, it's easier when GC objects point to other GC objects. Probably, eventually. But right now CodeBlock has a weird relationship with the GC - the GC does have a say in when a CodeBlock dies but not in the usual sense of tracing - so we'll have to be careful when we do that. There's also the issue that how a CodeBlock is traced depends on who owns it (either Executable or the GC itself), so it's not like making it GC'd would simplify its visit methods. For now, I don't see a clear benefit to making CodeBlock GC'd. It's true that doing so would mean that Executable would not have to be destructible, but I think that's really the only benefit. On the other hand, there is a clear benefit to making it ref-counted.
Filip Pizlo
Comment 3 2013-05-09 18:28:32 PDT
Created attachment 201308 [details] the patch Not setting r? yet because I'm still running tests.
Filip Pizlo
Comment 4 2013-05-09 18:44:19 PDT
(In reply to comment #3) > Created an attachment (id=201308) [details] > the patch > > Not setting r? yet because I'm still running tests. It's perf neutral.
Geoffrey Garen
Comment 5 2013-05-09 19:41:07 PDT
Comment on attachment 201308 [details] the patch r=me
Filip Pizlo
Comment 6 2013-05-09 19:44:45 PDT
Note You need to log in before you can comment on or make changes to this bug.