-
Notifications
You must be signed in to change notification settings - Fork 23
Support GC API in nightly builds #90
Comments
See https://bug531396.bugzilla.mozilla.org/attachment.cgi?id=605977 for an example implementation. |
This should be top priority since this evening's (3.14) nightly build is not supported by memchaser. |
What do you mean with not supported by memchaser? We have not stopped sending data via the console service. So the GC messages are clearly broken now: GC(T+0.0) T Please file a bug for Firefox in Core:Javascript Engine, so it can be fixed. |
Bug has been filed: https://bugzilla.mozilla.org/show_bug.cgi?id=735994 |
Bug should be fixed now. Sorry for the bustage. |
Thanks for fixing the bug @terrence2! |
I hope that this is only a failure. Changing keys in each version is kinda for us to keep up with support across branches. I will comment on the bug. |
Hm, looks like this was intentional. :S So we should once again update our extension and release a minor version. |
Added another patch for memchaser to the bugzilla bug. This one supports both old and new browsers and should apply cleanly against master. I'll see about formatting it as a pull request after lunch. |
Services.jsm (resource://gre/modules/Services.jsm) supports the observer service so I believe you can reuse some of the code. Other than that, it looks good! NIT: I probably would have checked for the app version (config.APP_BRANCH) instead of using the property "service" to indicate when the observer service is needed. |
Ah, yes, checking the config version directly should be fine here. Could you elaborate on what you mean with your first comment? I see that memchaser is doing a Components.utils.import on the jsm you mentioned, but I'm not sure how (or if) it interacts with Components.classes[].getService. Trying to just do Services.addObserver(...) results in an error, so I'm guessing it's more complicated than that. Sorry for being clueless, this is the first time I've looked at a Firefox add-on. :-) |
The ObserverService is expose in the initTable of Services.jsm so the usage would be Services.obs.addObserver(...) instead. Also, another thing to note is that the Components.* objects can be replaced with their initials (as long as it has been intialized). For example, you can use Cc for Components.classes, Ci for Compontents.interfaces, etc. |
Now merged via pull #99 |
The Garbage Collector API has been landed and we should support it:
https://bugzilla.mozilla.org/show_bug.cgi?id=531396
The text was updated successfully, but these errors were encountered: