From 595e96cc4e41d802fb0fde10600a8485b13f0a2b Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Mon, 13 Oct 2014 13:40:11 +0100 Subject: [PATCH] Remove framestate type. Copied from Perforce Change: 187234 ServerID: perforce.ravenbrook.com --- mps/code/mpm.h | 2 -- mps/code/mpmtypes.h | 1 - mps/design/type.txt | 23 --------------------- mps/manual/source/extensions/mps/designs.py | 2 +- 4 files changed, 1 insertion(+), 27 deletions(-) diff --git a/mps/code/mpm.h b/mps/code/mpm.h index b53acf252eb..eb52f275de8 100644 --- a/mps/code/mpm.h +++ b/mps/code/mpm.h @@ -805,8 +805,6 @@ extern void BufferRampReset(Buffer buffer); extern Res BufferFramePush(AllocFrame *frameReturn, Buffer buffer); extern Res BufferFramePop(Buffer buffer, AllocFrame frame); -extern FrameState BufferFrameState(Buffer buffer); -extern void BufferFrameSetState(Buffer buffer, FrameState state); /* DEFINE_BUFFER_CLASS -- define a buffer class */ diff --git a/mps/code/mpmtypes.h b/mps/code/mpmtypes.h index 6989ded5d8d..06527f00923 100644 --- a/mps/code/mpmtypes.h +++ b/mps/code/mpmtypes.h @@ -71,7 +71,6 @@ typedef struct BufferClassStruct *BufferClass; /* */ typedef BufferClass SegBufClass; /* */ typedef BufferClass RankBufClass; /* */ typedef unsigned BufferMode; /* */ -typedef unsigned FrameState; /* */ typedef struct mps_fmt_s *Format; /* design.mps.format */ typedef struct LockStruct *Lock; /* * */ typedef struct mps_pool_s *Pool; /* */ diff --git a/mps/design/type.txt b/mps/design/type.txt index c90a9335456..a140b33fad9 100644 --- a/mps/design/type.txt +++ b/mps/design/type.txt @@ -277,29 +277,6 @@ Value Description ==================== ================================================== -``typedef unsigned FrameState`` - -_`.framestate`: ``FrameState`` represents the current state in a -buffer frame's lifecycle. See design.mps.alloc-frame_. It takes one of -the following values: - -.. _design.mps.alloc-frame: alloc-frame - -========================== ============================================ -State Description -========================== ============================================ -``BufferFrameVALID`` Indicates that ``PushFrame()`` can be a - lightweight operation and need not be - synchronized. -``BufferFramePOP_PENDING`` Indicates that there has been a - ``PopFrame()`` operation that the pool - must respond to. -``BufferFrameDISABLED`` Indicates that the pool has disabled - support for lightweight operations for - this buffer. -========================== ============================================ - - ``typedef void (*Fun)(void)`` _`.fun`: ``Fun`` is the type of a pointer to a function about which diff --git a/mps/manual/source/extensions/mps/designs.py b/mps/manual/source/extensions/mps/designs.py index 3bf60a006b7..e54ed64e8d6 100644 --- a/mps/manual/source/extensions/mps/designs.py +++ b/mps/manual/source/extensions/mps/designs.py @@ -20,7 +20,7 @@ TYPES = ''' AccessSet Accumulation Addr Align AllocFrame AllocPattern AP Arg Arena Attr Bool BootBlock BT Buffer BufferMode Byte Chain Chunk - Clock Compare Count Epoch FindDelete Format FrameState Fun GenDesc + Clock Compare Count Epoch FindDelete Format Fun GenDesc Globals Index Land LD Lock LocusPref LocusPrefKind Message MessageType MutatorFaultContext Page Pointer Pool PoolGen PThreadext Range Rank RankSet ReadonlyAddr Ref RefSet Res