Actions
Bug #6821
closedGC::Profiler.enabled? returns 0 when enabled
Description
GC::Profiler.enabled? returns 0 when GC::Profiler is enabled, contrary to the documentation that states it returns either true or false. Looking at the code, I think it's an oversight because objspace->profile.run isn't properly wrapped for a VALUE. So TRUE is returned, which is 1 as a VALUE which equals the value for the Fixnum 0.
This changeset should fix the problem:
Actions
Like0
Like0Like0