Skip to content

Commit

Permalink
Fix changes to job_queue.h for hphpc
Browse files Browse the repository at this point in the history
An if (hhvm) was left out.
  • Loading branch information
jdelong authored and sgolemon committed Dec 8, 2012
1 parent cef2e9e commit 0782c64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/base/server/job_queue_vm_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
#ifndef incl_HPHP_RUNTIME_BASE_SERVER_JOB_QUEUE_VM_STACK_H_
#define incl_HPHP_RUNTIME_BASE_SERVER_JOB_QUEUE_VM_STACK_H_

#include "util/base.h"

namespace HPHP {
//////////////////////////////////////////////////////////////////////

namespace VM { void flush_evaluation_stack(); }

struct JobQueueDropVMStack {
static void dropCache() { VM::flush_evaluation_stack(); }
static void dropCache() { if (hhvm) VM::flush_evaluation_stack(); }
};

//////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 0782c64

Please sign in to comment.