Removing a note about initialization order that no longer applies.

Copied from Perforce
 Change: 191305
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2016-04-19 22:32:26 +01:00
parent 65a770e91f
commit cb620cf755
3 changed files with 3 additions and 11 deletions

View file

@ -231,15 +231,7 @@ Bool ArenaCheck(Arena arena)
}
/* ArenaAbsInit -- initialize the generic part of the arena
*
* .init.caller: ArenaInit is called by class->init (which is called
* by ArenaCreate). The initialization must proceed in this order, as
* opposed to class->init being called by ArenaInit, which would
* correspond to the initialization order for pools and other objects,
* because the memory for the arena structure is not available until
* it has been allocated by the arena class.
*/
/* ArenaAbsInit -- initialize the generic part of the arena */
static Res ArenaAbsInit(Arena arena, Size grainSize, ArgList args)
{

View file

@ -283,7 +283,7 @@ static Res ClientArenaCreate(Arena *arenaReturn, ArgList args)
return ResMEMORY;
arena = CouldBeA(AbstractArena, clientArena);
/* <code/arena.c#init.caller> */
res = NextMethod(Arena, ClientArena, init)(arena, grainSize, args);
if (res != ResOK)
goto failSuperInit;

View file

@ -553,7 +553,7 @@ static Res VMArenaCreate(Arena *arenaReturn, ArgList args)
vmArena = (VMArena)VMBase(vm);
arena = VMArena2Arena(vmArena);
/* <code/arena.c#init.caller> */
res = NextMethod(Arena, VMArena, init)(arena, grainSize, args);
if (res != ResOK)
goto failArenaInit;