Skip to content

JRuby counterpart for RubyVM.stat #4384

@dgutov

Description

@dgutov

Environment

jruby 1.7.26 (1.9.3p551) 2016-08-26 69763b8 on OpenJDK 64-Bit Server VM 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14 +jit [linux-amd64]

Expected Behavior

We want to have a fast way to determine whether the set of modules, classes and methods in the current runtime didn't change since the last time a certain method was invoked. One can do that in MRI 2.1 and newer by comparing the return values of RubyVM.stat. Is there a JRuby-specific way to do that, aside from doing a full ObjectSpace scan?

Here's the current use case: pry/pry#1583

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions