Project

General

Profile

Actions

Bug #19255

closed

YJIT: global symbol leakage

Added by nobu (Nobuyoshi Nakada) almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Assignee:
Target version:
-
[ruby-core:111402]

Description

When YJIT support is enabled, libyjit.a adds thousands leaking global symbols.

With this patch:

diff --git a/template/Makefile.in b/template/Makefile.in
index 145631386d8..6191bcbeb88 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -720,5 +720,5 @@ mjit_build_dir.$(SOEXT): $(MJIT_MIN_HEADER) $(srcdir)/ruby-runner.c ruby-runner.
 		$(OUTFLAG)$@ $(srcdir)/ruby-runner.c
 
 # yes-test-basic: leaked-globals
-leaked-globals: $(COMMONOBJS) prog $(tooldir)/leaked-globals PHONY
-	$(Q) $(XRUBY) $(tooldir)/leaked-globals NM=$(NM) SYMBOL_PREFIX=$(SYMBOL_PREFIX) PLATFORM=$(hdrdir)/ruby/$(PLATFORM_DIR).h $(srcdir)/configure.ac $(COMMONOBJS)
+leaked-globals: $(COMMONOBJS) $(YJIT_LIBS) prog $(tooldir)/leaked-globals PHONY
+	$(Q) $(XRUBY) $(tooldir)/leaked-globals NM=$(NM) SYMBOL_PREFIX=$(SYMBOL_PREFIX) PLATFORM=$(hdrdir)/ruby/$(PLATFORM_DIR).h $(srcdir)/configure.ac $(COMMONOBJS) $(YJIT_LIBS)

make leaked-globals reports 2915 un-prefixed symbols leaked.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0