File tree Expand file tree Collapse file tree 3 files changed +0
-22
lines changed Expand file tree Collapse file tree 3 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -5263,12 +5263,6 @@ class CustomSerializableObject : public NativeObject {
5263
5263
self.infallibleInit ();
5264
5264
self.set (js_new<ActivityLog>());
5265
5265
MOZ_RELEASE_ASSERT (self.get ());
5266
- TlsContext.get ()->runtime ()->atExit (
5267
- [](void * vpData) {
5268
- auto * log = static_cast <ActivityLog*>(vpData);
5269
- js_delete (log);
5270
- },
5271
- self.get ());
5272
5266
}
5273
5267
return self.get ();
5274
5268
}
Original file line number Diff line number Diff line change @@ -210,11 +210,6 @@ void JSRuntime::destroyRuntime() {
210
210
MOZ_ASSERT (childRuntimeCount == 0 );
211
211
MOZ_ASSERT (initialized_);
212
212
213
- for (auto [f, data] : cleanupClosures.ref ()) {
214
- f (data);
215
- }
216
- cleanupClosures.ref ().clear ();
217
-
218
213
#ifdef JS_HAS_INTL_API
219
214
sharedIntlData.ref ().destroyInstance ();
220
215
#endif
Original file line number Diff line number Diff line change @@ -665,20 +665,9 @@ struct JSRuntime {
665
665
/* Code coverage output. */
666
666
js::UnprotectedData<js::coverage::LCovRuntime> lcovOutput_;
667
667
668
- /* Functions to call, together with data, when the runtime is being torn down.
669
- */
670
- js::MainThreadData<std::vector<std::pair<void (*)(void *), void *>>>
671
- cleanupClosures;
672
-
673
668
public:
674
669
js::coverage::LCovRuntime& lcovOutput () { return lcovOutput_.ref (); }
675
670
676
- /* Register a cleanup function to be called during runtime shutdown. Do not
677
- * depend on the ordering of cleanup calls. */
678
- void atExit (void (*function)(void *), void* data) {
679
- cleanupClosures.ref ().push_back ({function, data});
680
- }
681
-
682
671
private:
683
672
js::UnprotectedData<js::jit::JitRuntime*> jitRuntime_;
684
673
You can’t perform that action at this time.
0 commit comments