mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix leaked symbols on FreeBSD [ci skip]
This commit is contained in:
parent
feac15c1f3
commit
9859dbc7fd
2 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,7 @@ IO.foreach("|#{NM} #{ARGV.join(' ')}") do |line|
|
||||||
next unless n.sub!(/^#{SYMBOL_PREFIX}/o, "")
|
next unless n.sub!(/^#{SYMBOL_PREFIX}/o, "")
|
||||||
next if n.include?(".")
|
next if n.include?(".")
|
||||||
next if !so and n.start_with?("___asan_")
|
next if !so and n.start_with?("___asan_")
|
||||||
|
case n; when "_init", "_fini"; next end
|
||||||
case n
|
case n
|
||||||
when /\A(?:Init_|InitVM_|pm_|[Oo]nig|dln_|coroutine_)/
|
when /\A(?:Init_|InitVM_|pm_|[Oo]nig|dln_|coroutine_)/
|
||||||
next
|
next
|
||||||
|
|
|
@ -836,6 +836,9 @@ rb_print_backtrace(FILE *errout)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LIBPROCSTAT
|
#ifdef HAVE_LIBPROCSTAT
|
||||||
|
struct procstat;
|
||||||
|
struct kinfo_proc;
|
||||||
|
static void procstat_vm(struct procstat *, struct kinfo_proc *, FILE *);
|
||||||
#include "missing/procstat_vm.c"
|
#include "missing/procstat_vm.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue