hotspot/src/share/vm/compiler/compileLog.hpp
changeset 24424 2658d7834c6e
parent 24002 4e6a72032a99
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    53 
    53 
    54   CompileLog*   _next;           // static chain of all logs
    54   CompileLog*   _next;           // static chain of all logs
    55 
    55 
    56   static CompileLog* _first;     // head of static chain
    56   static CompileLog* _first;     // head of static chain
    57 
    57 
    58   void va_tag(bool push, const char* format, va_list ap);
    58   void va_tag(bool push, const char* format, va_list ap) ATTRIBUTE_PRINTF(3, 0);
    59 
    59 
    60  public:
    60  public:
    61   CompileLog(const char* file_name, FILE* fp, intx thread_id);
    61   CompileLog(const char* file_name, FILE* fp, intx thread_id);
    62   ~CompileLog();
    62   ~CompileLog();
    63 
    63 
    67   // Optional context marker, to help place actions that occur during
    67   // Optional context marker, to help place actions that occur during
    68   // parsing. If there is no log output until the next context string
    68   // parsing. If there is no log output until the next context string
    69   // or reset, context string will be silently ignored
    69   // or reset, context string will be silently ignored
    70   stringStream* context()                        { return &_context; }
    70   stringStream* context()                        { return &_context; }
    71   void    clear_context()                        { context()->reset(); }
    71   void    clear_context()                        { context()->reset(); }
    72   void      set_context(const char* format, ...);
    72   void      set_context(const char* format, ...) ATTRIBUTE_PRINTF(2, 3);
    73 
    73 
    74   void          name(ciSymbol* s);               // name='s'
    74   void          name(ciSymbol* s);               // name='s'
    75   void          name(Symbol* s)                  { xmlStream::name(s); }
    75   void          name(Symbol* s)                  { xmlStream::name(s); }
    76   void          name(ciKlass* k);
    76   void          name(ciKlass* k);
    77 
    77