harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r788640 - in /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native: include/shared/ port/shared/ port/unix/ port/windows/ thread/shared/ thread/unix/ thread/windows/
Date Fri, 26 Jun 2009 09:37:14 GMT
Author: odeakin
Date: Fri Jun 26 09:37:13 2009
New Revision: 788640

URL: http://svn.apache.org/viewvc?rev=788640&view=rev
Log:
Commit classlib patch for JDWP contribution in HARMONY-6187 ([jdktools][jdwp] Contribution
of updated JDWP agent and socket transport layer for Java 6)

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyport.h
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyporterror.h
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hythread.h
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/portpriv.h
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hymem.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hymem.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysl.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythread.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.c
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.h
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/unix/thrtypes.h
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/windows/thrtypes.h

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyport.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyport.h?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyport.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyport.h
Fri Jun 26 09:37:13 2009
@@ -416,7 +416,7 @@
                                           BOOLEAN decorate);
   /** see @ref hysl.c::hysl_lookup_name "hysl_lookup_name"*/
   UDATA (PVMCALL sl_lookup_name) (struct HyPortLibrary * portLibrary,
-                                  UDATA descriptor, char *name,
+                                  UDATA descriptor, const char *name,
                                   UDATA * func, const char *argSignature);
   /** see @ref hytty.c::hytty_startup "hytty_startup"*/
   I_32 (PVMCALL tty_startup) (struct HyPortLibrary * portLibrary);
@@ -450,7 +450,7 @@
   /** see @ref hymem.c::hymem_allocate_memory_callSite "hymem_allocate_memory_callSite"*/
   void *(PVMCALL mem_allocate_memory_callSite) (struct HyPortLibrary *
                                                 portLibrary, UDATA byteAmount,
-                                                char *callSite);
+                                                const char *callSite);
   /** see @ref hymem.c::hymem_free_memory "hymem_free_memory"*/
   void (PVMCALL mem_free_memory) (struct HyPortLibrary * portLibrary,
                                   void *memoryPointer);
@@ -505,7 +505,7 @@
                             I_32 flags);
   /** see @ref hysock.c::hysock_sockaddr "hysock_sockaddr"*/
   I_32 (PVMCALL sock_sockaddr) (struct HyPortLibrary * portLibrary,
-                                hysockaddr_t handle, char *addrStr,
+                                hysockaddr_t handle, const char *addrStr,
                                 U_16 port);
   /** see @ref hysock.c::hysock_read "hysock_read"*/
   I_32 (PVMCALL sock_read) (struct HyPortLibrary * portLibrary,
@@ -523,10 +523,10 @@
                               hysocket_t sock, hysockaddr_t addr);
   /** see @ref hysock.c::hysock_inetaddr "hysock_inetaddr"*/
   I_32 (PVMCALL sock_inetaddr) (struct HyPortLibrary * portLibrary,
-                                char *addrStr, U_32 * addr);
+                                const char *addrStr, U_32 * addr);
   /** see @ref hysock.c::hysock_gethostbyname "hysock_gethostbyname"*/
   I_32 (PVMCALL sock_gethostbyname) (struct HyPortLibrary * portLibrary,
-                                    char *name, hyhostent_t handle);
+                                    const char *name, hyhostent_t handle);
   /** see @ref hysock.c::hysock_hostent_addrlist "hysock_hostent_addrlist"*/
   I_32 (PVMCALL sock_hostent_addrlist) (struct HyPortLibrary * portLibrary,
                                         hyhostent_t handle, U_32 index);
@@ -1004,6 +1004,8 @@
   /** see @ref hyport.c::hyport_get_thread_library "hyport_get_thread_library" */
   HyThreadLibrary * (PVMCALL port_get_thread_library) (struct HyPortLibrary * portLibrary);
 #endif /* HY_NO_THR */
+  void  (PVMCALL sock_fdset_zero)(struct HyPortLibrary *portLibrary, hyfdset_t fdset) ;
+  void  (PVMCALL sock_fdset_set)(struct HyPortLibrary *portLibrary, hysocket_t aSocket, hyfdset_t
fdset) ;
   char _hypadding039C[4];       /* 4 bytes of automatic padding */
 } HyPortLibrary;
 #define HYPORT_SL_FOUND  0
@@ -1439,6 +1441,8 @@
 #define hymem_allocate_memory(param1) privatePortLibrary->mem_allocate_memory_callSite(privatePortLibrary,param1,
HY_GET_CALLSITE())
 #undef hymem_allocate_code_memory
 #define hymem_allocate_code_memory(param1) privatePortLibrary->mem_allocate_code_memory_callSite(privatePortLibrary,param1,
HY_GET_CALLSITE())
+#define hysock_fdset_zero(param1) privatePortLibrary->sock_fdset_zero(privatePortLibrary,param1)
+#define hysock_fdset_set(param1,param2) privatePortLibrary->sock_fdset_set(privatePortLibrary,param1,param2)
 #endif /* !HYPORT_LIBRARY_DEFINE */
 /** @} */
 

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyporterror.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyporterror.h?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyporterror.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hyporterror.h
Fri Jun 26 09:37:13 2009
@@ -189,6 +189,9 @@
 #define HYPORT_ERROR_SOCKET_CONNECTION_REFUSED	 HYPORT_ERROR_SOCKET_BASE-49	/* connection
was refused */
 #define HYPORT_ERROR_SOCKET_ENETUNREACH HYPORT_ERROR_SOCKET_BASE-50					/* network is not
reachable */
 #define HYPORT_ERROR_SOCKET_EACCES HYPORT_ERROR_SOCKET_BASE-51							/* permissions do not
allow action on socket */
+#define HYPORT_ERROR_SOCKET_WAS_CLOSED (HYPORT_ERROR_SOCKET_BASE-52)
+#define HYPORT_ERROR_SOCKET_EINPROGRESS (HYPORT_ERROR_SOCKET_BASE-53)
+#define HYPORT_ERROR_SOCKET_ALREADYINPROGRESS (HYPORT_ERROR_SOCKET_BASE-54)
 
 #define HYPORT_ERROR_SOCKET_FIRST_ERROR_NUMBER HYPORT_ERROR_SOCKET_BASE
 #define HYPORT_ERROR_SOCKET_LAST_ERROR_NUMBER HYPORT_ERROR_SOCKET_VALUE_NULL /* Equals last
used error code */

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hythread.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hythread.h?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hythread.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/include/shared/hythread.h
Fri Jun 26 09:37:13 2009
@@ -136,7 +136,7 @@
   extern HY_CFUNC IDATA VMCALL hythread_park
     PROTOTYPE ((I_64 millis, IDATA nanos));
   extern HY_CFUNC IDATA VMCALL hythread_monitor_init_with_name
-    PROTOTYPE ((hythread_monitor_t * handle, UDATA flags, char *name));
+    PROTOTYPE ((hythread_monitor_t * handle, UDATA flags, const char *name));
   extern HY_CFUNC IDATA VMCALL hythread_monitor_try_enter
     PROTOTYPE ((hythread_monitor_t monitor));
   extern HY_CFUNC void VMCALL hythread_jlm_thread_clear
@@ -239,7 +239,7 @@
     PROTOTYPE ((hythread_t thread));
   extern HY_CFUNC void *VMCALL hythread_tls_get
     PROTOTYPE ((hythread_t thread, hythread_tls_key_t key));
-  extern HY_CFUNC char *VMCALL hythread_monitor_get_name
+  extern HY_CFUNC const char *VMCALL hythread_monitor_get_name
     PROTOTYPE ((hythread_monitor_t monitor));
   extern HY_CFUNC hythread_monitor_t VMCALL hythread_monitor_walk
     PROTOTYPE ((hythread_monitor_t monitor));

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/portpriv.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/portpriv.h?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/portpriv.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/portpriv.h
Fri Jun 26 09:37:13 2009
@@ -318,7 +318,7 @@
 extern HY_CFUNC void *VMCALL
   hymem_allocate_memory_callSite
 PROTOTYPE ((struct HyPortLibrary * portLibrary, UDATA byteAmount,
-            char *callSite));
+            const char *callSite));
 struct HyPortLibrary;
 extern HY_CFUNC void VMCALL
   hymem_shutdown PROTOTYPE ((struct HyPortLibrary * portLibrary));
@@ -587,7 +587,7 @@
 struct HyPortLibrary;
 extern HY_CFUNC UDATA VMCALL
   hysl_lookup_name
-PROTOTYPE ((struct HyPortLibrary * portLibrary, UDATA descriptor, char *name,
+PROTOTYPE ((struct HyPortLibrary * portLibrary, UDATA descriptor, const char *name,
             UDATA * func, const char *argSignature));
 struct HyPortLibrary;
 extern HY_CFUNC UDATA VMCALL
@@ -823,7 +823,7 @@
 struct HyPortLibrary;
 extern HY_CFUNC I_32 VMCALL
   hysock_inetaddr
-PROTOTYPE ((struct HyPortLibrary * portLibrary, char *addrStr, U_32 * addr));
+PROTOTYPE ((struct HyPortLibrary * portLibrary, const char *addrStr, U_32 * addr));
 struct HyPortLibrary;
 extern HY_CFUNC I_32 VMCALL
   hysock_bind
@@ -882,7 +882,7 @@
 extern HY_CFUNC I_32 VMCALL
   hysock_sockaddr
 PROTOTYPE ((struct HyPortLibrary * portLibrary, hysockaddr_t handle,
-            char *addrStr, U_16 port));
+            const char *addrStr, U_16 port));
 struct HyPortLibrary;
 extern HY_CFUNC I_32 VMCALL
   hysock_gethostbyaddr
@@ -965,7 +965,7 @@
 struct HyPortLibrary;
 extern HY_CFUNC I_32 VMCALL
   hysock_gethostbyname
-PROTOTYPE ((struct HyPortLibrary * portLibrary, char *name,
+PROTOTYPE ((struct HyPortLibrary * portLibrary, const char *name,
             hyhostent_t handle));
 struct HyPortLibrary;
 struct hyNetworkInterfaceArray_struct;

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hymem.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hymem.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hymem.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hymem.c Fri
Jun 26 09:37:13 2009
@@ -230,7 +230,7 @@
  */
 void *VMCALL
 hymem_allocate_memory_callSite (struct HyPortLibrary *portLibrary,
-                                UDATA byteAmount, char *callSite)
+                                UDATA byteAmount, const char *callSite)
 {
   void *ptr = NULL;
 

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysl.c Fri Jun
26 09:37:13 2009
@@ -192,7 +192,7 @@
  */
 UDATA VMCALL
 hysl_lookup_name (struct HyPortLibrary * portLibrary, UDATA descriptor,
-                  char *name, UDATA * func, const char *argSignature)
+                  const char *name, UDATA * func, const char *argSignature)
 {
   void *address;
   address = dlsym ((void *)descriptor, name);

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Fri
Jun 26 09:37:13 2009
@@ -787,6 +787,22 @@
 
 #undef CDEV_CURRENT_FUNCTION
 
+#define CDEV_CURRENT_FUNCTION hysock_fdset_zero
+void VMCALL
+hysock_fdset_zero(struct HyPortLibrary *portLibrary, hyfdset_t fdset) {
+	FD_ZERO(&fdset->handle);
+	return;
+}
+#undef CDEV_CURRENT_FUNCTION
+
+#define CDEV_CURRENT_FUNCTION hysock_fdset_set
+void VMCALL
+hysock_fdset_set(struct HyPortLibrary *portLibrary, hysocket_t socket, hyfdset_t fdset) {
+    FD_SET(SOCKET_CAST(socket), &fdset->handle);
+	return;
+}
+#undef CDEV_CURRENT_FUNCTION
+
 #define CDEV_CURRENT_FUNCTION hysock_freeaddrinfo
 
 /**
@@ -1373,7 +1389,7 @@
  * @return	0, if no errors occurred, otherwise the (negative) error code.
  */
 I_32 VMCALL
-hysock_gethostbyname (struct HyPortLibrary * portLibrary, char *name,
+hysock_gethostbyname (struct HyPortLibrary * portLibrary, const char *name,
                       hyhostent_t handle)
 {
 #if !HOSTENT_DATA_R
@@ -2200,7 +2216,7 @@
  * @return	0, if no errors occurred, otherwise the (negative) error code.
  */
 I_32 VMCALL
-hysock_inetaddr (struct HyPortLibrary * portLibrary, char *addrStr,
+hysock_inetaddr (struct HyPortLibrary * portLibrary, const char *addrStr,
                  U_32 * addr)
 {
   I_32 rc = 0;
@@ -3293,7 +3309,7 @@
  */
 I_32 VMCALL
 hysock_sockaddr (struct HyPortLibrary * portLibrary, hysockaddr_t handle,
-                 char *addrStr, U_16 port)
+                 const char *addrStr, U_16 port)
 {
   I_32 rc = 0;
   U_32 addr = 0;

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hymem.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hymem.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hymem.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hymem.c Fri
Jun 26 09:37:13 2009
@@ -191,7 +191,7 @@
  */
 void *VMCALL
 hymem_allocate_memory_callSite (struct HyPortLibrary *portLibrary,
-				UDATA byteAmount, char *callSite)
+				UDATA byteAmount, const char *callSite)
 {
   void *ptr = NULL;
 

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysl.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysl.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysl.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysl.c Fri
Jun 26 09:37:13 2009
@@ -35,13 +35,13 @@
 #endif
 
 #define CDEV_CURRENT_FUNCTION _prototypes_private
-UDATA VMCALL EsSharedLibraryLookupName (UDATA descriptor, char *name,
+UDATA VMCALL EsSharedLibraryLookupName (UDATA descriptor, const char *name,
 					UDATA * func);
 #undef CDEV_CURRENT_FUNCTION
 
 #define CDEV_CURRENT_FUNCTION EsSharedLibraryLookupName
 UDATA VMCALL
-EsSharedLibraryLookupName (UDATA descriptor, char *name, UDATA * func)
+EsSharedLibraryLookupName (UDATA descriptor, const char *name, UDATA * func)
 {
   UDATA lpfnFunction;
 
@@ -259,7 +259,7 @@
  */
 UDATA VMCALL
 hysl_lookup_name (struct HyPortLibrary * portLibrary, UDATA descriptor,
-		  char *name, UDATA * func, const char *argSignature)
+		  const char *name, UDATA * func, const char *argSignature)
 {
   char *mangledName;
   UDATA result;

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hysock.c
Fri Jun 26 09:37:13 2009
@@ -987,6 +987,27 @@
 
 #undef CDEV_CURRENT_FUNCTION
 
+#define CDEV_CURRENT_FUNCTION hysock_fdset_zero
+void VMCALL
+hysock_fdset_zero(struct HyPortLibrary *portLibrary, hyfdset_t fdset) {
+	FD_ZERO(&fdset->handle);
+	return;
+}
+#undef CDEV_CURRENT_FUNCTION 
+
+#define CDEV_CURRENT_FUNCTION hysock_fdset_set
+void VMCALL
+hysock_fdset_set(struct HyPortLibrary *portLibrary, hysocket_t socket, hyfdset_t fdset) {
+	if (socket->flags & SOCKET_IPV4_OPEN_MASK) {
+		FD_SET(socket->ipv4, &fdset->handle);
+	} 
+	if (socket->flags & SOCKET_IPV6_OPEN_MASK) {
+		FD_SET(socket->ipv6, &fdset->handle);
+	}	
+	return;
+}
+#undef CDEV_CURRENT_FUNCTION 
+
 #define CDEV_CURRENT_FUNCTION hysock_freeaddrinfo
 /**
  * Frees the memory created by the call to @ref hysock_getaddrinfo().
@@ -1467,7 +1488,7 @@
  * @return	0, if no errors occurred, otherwise the (negative) error code.
  */
 I_32 VMCALL
-hysock_gethostbyname (struct HyPortLibrary * portLibrary, char *name,
+hysock_gethostbyname (struct HyPortLibrary * portLibrary, const char *name,
 		      hyhostent_t handle)
 {
   OSHOSTENT *result;
@@ -2140,7 +2161,7 @@
  * @return	0, if no errors occurred, otherwise the (negative) error code.
  */
 I_32 VMCALL
-hysock_inetaddr (struct HyPortLibrary * portLibrary, char *addrStr,
+hysock_inetaddr (struct HyPortLibrary * portLibrary, const char *addrStr,
 		 U_32 * addr)
 {
   I_32 rc = 0;
@@ -3423,7 +3444,7 @@
  */
 I_32 VMCALL
 hysock_sockaddr (struct HyPortLibrary * portLibrary, hysockaddr_t handle,
-		 char *addrStr, U_16 port)
+		 const char *addrStr, U_16 port)
 {
   I_32 rc = 0;
   U_32 addr = 0;

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythread.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythread.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythread.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythread.c
Fri Jun 26 09:37:13 2009
@@ -3331,7 +3331,7 @@
  */
 IDATA VMCALL
 hythread_monitor_init_with_name (hythread_monitor_t * handle, UDATA flags,
-                                 char *name)
+                                 const char *name)
 {
   ASSERT (handle);
 

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.c?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.c
Fri Jun 26 09:37:13 2009
@@ -232,7 +232,7 @@
  * @see hythread_monitor_init_with_name
  * 
  */
-char *VMCALL
+const char *VMCALL
 hythread_monitor_get_name (hythread_monitor_t monitor)
 {
   ASSERT (monitor);

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.h?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/shared/hythreadinspect.h
Fri Jun 26 09:37:13 2009
@@ -41,7 +41,7 @@
 UDATA VMCALL hythread_get_priority PROTOTYPE ((hythread_t thread));
 void *VMCALL hythread_tls_get
 PROTOTYPE ((hythread_t thread, hythread_tls_key_t key));
-char *VMCALL hythread_monitor_get_name
+const char *VMCALL hythread_monitor_get_name
 PROTOTYPE ((hythread_monitor_t monitor));
 hythread_monitor_t VMCALL hythread_monitor_walk
 PROTOTYPE ((hythread_monitor_t monitor));

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/unix/thrtypes.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/unix/thrtypes.h?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/unix/thrtypes.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/unix/thrtypes.h
Fri Jun 26 09:37:13 2009
@@ -50,7 +50,7 @@
     UDATA flags;
     UDATA userData;
     struct HyThreadMonitorTracing *tracing;
-    char *name;
+    const char *name;
     UDATA pinCount;
     UDATA antiDeflationCount;
     UDATA proDeflationCount;

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/windows/thrtypes.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/windows/thrtypes.h?rev=788640&r1=788639&r2=788640&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/windows/thrtypes.h
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/thread/windows/thrtypes.h
Fri Jun 26 09:37:13 2009
@@ -53,7 +53,7 @@
     UDATA flags;
     UDATA userData;
     struct HyThreadMonitorTracing *tracing;
-    char *name;
+    const char *name;
     UDATA pinCount;
     UDATA antiDeflationCount;
     UDATA proDeflationCount;



Mime
View raw message