From cce89c8dddbfc588fa211ebb23bcfb6ce233844c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 2 Feb 2011 08:15:07 -0700 Subject: [PATCH] fix MSVC build --- src/machine.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/machine.h b/src/machine.h index cdaa703caa..100e6f1e04 100644 --- a/src/machine.h +++ b/src/machine.h @@ -1568,20 +1568,20 @@ class Classpath { #ifdef _MSC_VER template -class RuntimeArray: public Thread::Resource { +class ThreadRuntimeArray: public Thread::Resource { public: - RuntimeArray(Thread* t, unsigned size): + ThreadRuntimeArray(Thread* t, unsigned size): Resource(t), body(static_cast(t->m->heap->allocate(size * sizeof(T)))), size(size) { } - ~RuntimeArray() { + ~ThreadRuntimeArray() { t->m->heap->free(body, size * sizeof(T)); } virtual void release() { - RuntimeArray::~RuntimeArray(); + ThreadRuntimeArray::~ThreadRuntimeArray(); } T* body; @@ -1589,7 +1589,7 @@ class RuntimeArray: public Thread::Resource { }; # define THREAD_RUNTIME_ARRAY(thread, type, name, size) \ - RuntimeArray name(thread, size); + ThreadRuntimeArray name(thread, size); #else // not _MSC_VER