harpoon.Backend.Runtime1
Class SPAllocationStrategy
java.lang.Object
|
+--harpoon.Backend.Runtime1.AllocationStrategy
|
+--harpoon.Backend.Runtime1.MallocAllocationStrategy
|
+--harpoon.Backend.Runtime1.SPAllocationStrategy
- public class SPAllocationStrategy
- extends MallocAllocationStrategy
SPAllocationStrategy
implements a "semi-precise"
allocation strategy by providing the BDW collector with more
precise information about pointer locations.
- Version:
- $Id: SPAllocationStrategy.java,v 1.3 2002/02/26 22:44:31 cananian Exp $
- Author:
- Karen K. Zee <kkz@alum.mit.edu>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPAllocationStrategy
public SPAllocationStrategy(Frame f)
- Creates a
SPAllocationStrategy
.
memAlloc
public Exp memAlloc(TreeFactory tf,
HCodeElement source,
DerivationGenerator dg,
AllocationInformation.AllocationProperties ap,
Exp length)
- Description copied from class:
AllocationStrategy
- Return a
Tree.Exp
created with the given
TreeFactory
that returns a pointer to a piece of
memory length
bytes long.
- Overrides:
memAlloc
in class MallocAllocationStrategy