Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

AllocObject Class Reference

Type of Java object. More...

#include <allocObject.h>

Inheritance diagram for AllocObject::

LI1 LI2 AllocAbstractStatThreadObject IdObject InfoBinaryFormat ListItem ListItem AllocStatData RefCount RefCount DataBinaryFormat StatDataModification List of all members.

Public Methods

 AllocObject ()
 Default constructor.

virtual ~AllocObject ()
 Destructor.

const AllocObjectKeygetKey (AllocObjectKey &key)
 Retrieves object's key. More...

int operator== (const AllocObjectKey &key)
 Compares object with given key. More...

virtual BufferinfoToBin (Buffer &b)
 Convert info to binary. More...

void deactivate ()
 Performs deactivation.

void * operator new (size_t sz)
 Overloaded new() operator.

void operator delete (void *unit)
 Overloaded delete() operator.

virtual eClassIdent getClassIdent ()
 Class identification. More...

virtual int isActive ()
 State of object. More...

virtual int isChanged ()
 Indication that object has changed its data. More...

virtual void setUnchanged ()
 Set the structure is unchanged although it may not be.


Static Public Methods

int hashKey (const AllocObjectKey &key)
 Hash function. More...


Public Attributes

Classclss
 corresponding class or NULL for a primitive type.

jobjectID classId
 Java class ID of the object's class.

jint isArray
 Type of object (eg. More...

List< AllocObjectMethod, LI1objectMethods
 associated AllocObjectMethods.

List< AllocThreadObject, LI2threadObjects
 associated AllocThreadObjects.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Type of Java object.

This class consists of data about type of object. Java objects can be differentiated by the couple (class, isArray), where 'class' means class of the object and 'isArray' contains a value if the object is a normal object or an array of objects of the given 'class'. Data is aquired by receiving a JVMPI_EVENT_OBJECT_ALLOC event.

See also:
AllocObjectMethod, AllocThreadObject
Author:
Marek Przeczek, Petr Luner

Definition at line 61 of file allocObject.h.


Member Function Documentation

virtual eClassIdent AllocObject::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 169 of file allocObject.h.

const AllocObjectKey & AllocObject::getKey AllocObjectKey   key
 

Retrieves object's key.

Parameters:
key  where to store the key
Returns:
key
See also:
Hash

Definition at line 81 of file allocObject.cpp.

Referenced by AllocThreadObject::getKey(), and AllocObjectMethod::getKey().

int AllocObject::hashKey const AllocObjectKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 95 of file allocObject.cpp.

Referenced by AllocObjectTrace::hashKey(), and AllocObjectMethod::hashKey().

Buffer & AllocObject::infoToBin Buffer   b [virtual]
 

Convert info to binary.

This method converts information data to binary format in which it is sent thru communication interface to client.

Parameters:
b  buffer where to append data
Returns:
reference to same Buffer object as argument 'b'

Reimplemented from InfoBinaryFormat.

Definition at line 43 of file allocObject.cpp.

int AllocObject::isActive   [virtual]
 

State of object.

Once an object is unactive, it remains unactive forever.

Returns:
0 (not active); 1 (active)

Reimplemented from IdObject.

Definition at line 100 of file allocObject.cpp.

Referenced by AllocThreadObject::isActive(), and AllocObjectMethod::isActive().

virtual int AllocObject::isChanged   [inline, virtual]
 

Indication that object has changed its data.

Returns:
0 (no change); 1 (data changed)

Reimplemented from IdObject.

Definition at line 184 of file allocObject.h.

int AllocObject::operator== const AllocObjectKey   key
 

Compares object with given key.

Parameters:
key  key
Returns:
1 (true); 0 (false)
See also:
Hash

Definition at line 88 of file allocObject.cpp.


Member Data Documentation

jint AllocObject::isArray
 

Type of object (eg.

JVMPI_NORMAL_OBJECT, JVMPI_CLASS, JVMPI_BOOLEAN etc.). These values say if the object is normal object or an array of objects (of given class) or an array of primitive type (boolean, short etc.).

See also:
JVMPI documentation

Definition at line 81 of file allocObject.h.

Referenced by Prof::getAllocObject().


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:27 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001