diff options
author | Michal Krol <[email protected]> | 2005-03-18 14:28:02 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2005-03-18 14:28:02 +0000 |
commit | 2fb2e27e28569371bd0d12aa74504d53bb04edc0 (patch) | |
tree | 87fd04629f66c78767e68ed8fe9ea2d552771042 /src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp | |
parent | 5b641a516ecde984027d4fc1fe198195b7b861a7 (diff) |
update against 03-Feb-2005 release
Diffstat (limited to 'src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp')
-rwxr-xr-x | src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp b/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp index 7cb83b9bd02..497264348b7 100755 --- a/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp +++ b/src/mesa/shader/slang/MachineIndependent/PoolAlloc.cpp @@ -1,5 +1,5 @@ //
-//Copyright (C) 2002-2004 3Dlabs Inc. Ltd.
+//Copyright (C) 2002-2005 3Dlabs Inc. Ltd.
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
@@ -34,7 +34,6 @@ #include "../Include/PoolAlloc.h"
#include "../Include/Common.h"
-#include <assert.h>
#include "Include/InitializeGlobals.h"
#include "osinclude.h"
@@ -52,7 +51,6 @@ void InitializeGlobalPools() TThreadGlobalPools* threadData = new TThreadGlobalPools();
threadData->globalPoolAllocator = globalPoolAllocator;
- threadData->compilerPoolAllocator = 0;
OS_SetTLSValue(PoolIndex, threadData);
globalPoolAllocator->push();
@@ -99,13 +97,6 @@ void SetGlobalPoolAllocatorPtr(TPoolAllocator* poolAllocator) threadData->globalPoolAllocator = poolAllocator;
}
-PoolAllocatorPointer& GetCompilerPoolAllocator()
-{
- TThreadGlobalPools* threadData = static_cast<TThreadGlobalPools*>(OS_GetTLSValue(PoolIndex));
-
- return threadData->compilerPoolAllocator;
-}
-
//
// Implement the functionality of the TPoolAllocator class, which
// is documented in PoolAlloc.h.
@@ -191,6 +182,16 @@ TPoolAllocator::~TPoolAllocator() }
}
+// Support MSVC++ 6.0
+const unsigned char TAllocation::guardBlockBeginVal = 0xfb;
+const unsigned char TAllocation::guardBlockEndVal = 0xfe;
+const unsigned char TAllocation::userDataFill = 0xcd;
+
+# ifdef GUARD_BLOCKS
+ const size_t TAllocation::guardBlockSize = 16;
+# else
+ const size_t TAllocation::guardBlockSize = 0;
+# endif
//
// Check a single guard block for damage
|