head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2011.04.03.16.20.05;	author dhn;	state dead;
branches;
next	1.1;

1.1
date	2011.03.18.13.55.50;	author araujo;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update to 0.4.5

PR:		ports/156120
Submitted by:	Jin-Sih Lin <linpct@@gmail.com> (maintainer)
@
text
@--- deps/v8/src/platform-freebsd.cc.orig	2011-02-05 15:15:52.000000000 +0800
+++ deps/v8/src/platform-freebsd.cc	2011-02-05 15:34:20.000000000 +0800
@@@@ -526,6 +526,16 @@@@
     return result;
   }
 
+  virtual bool TryLock() {
+    int result = pthread_mutex_trylock(&mutex_);
+    // Return false if the lock is busy and locking failed.
+    if (result == EBUSY) {
+      return false;
+    }
+    ASSERT(result == 0);  // Verify no other errors.
+    return true;
+  }
+
  private:
   pthread_mutex_t mutex_;   // Pthread mutex for POSIX platforms.
 };
@@@@ -604,7 +614,7 @@@@
   TickSample sample;
 
   // We always sample the VM state.
-  sample.state = VMState::current_state();
+  // sample.state = VMState::current_state();
 
   // If profiling, we extract the current pc and sp.
   if (active_sampler_->IsProfiling()) {
@


1.1
log
@- Merging from www/node-devel to www/node.
- Update to 0.4.2.

PR:		ports/154990
Submitted by:	Jin-Sih Lin <linpct@@gmail.com> (maintainer)
@
text
@@

