Java Code Examples for sun.jvm.hotspot.memory.SymbolTable

Following code examples demonstrate how to use sun.jvm.hotspot.memory.SymbolTablefrom java. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use sun.jvm.hotspot.memory.SymbolTableand various code implementation of this class.

    public void run() {
        System.out.println("SASymbolTableTestAgent: starting");
        try {
            VM vm = VM.getVM();
            SymbolTable table = vm.getSymbolTable();

            for (String n : commonNames) {
                Symbol s = table.probe(n);
                System.out.format("%-40s = %s\n", n, s);
            }

            System.out.println("======================================================================");

            for (String n : badNames) {
                Symbol s = table.probe(n);
                System.out.format("%-40s = %s\n", n, s);
            }
        } catch (NullPointerException e) {
            System.out.println("connected too early -- please try again");
        }
    } 


    public void run() {
        SymbolTable table = VM.getVM().getSymbolTable();
        table.symbolsDo(new SymbolTablePrinter());
    } 

Advertisement
Advertisement