@@ -276,11 +276,6 @@ static char dsa_size_class_map[] = {
276276 */
277277#define DSA_FULLNESS_CLASSES 4
278278
279- /*
280- * Maximum length of a DSA name.
281- */
282- #define DSA_MAXLEN 64
283-
284279/*
285280 * A dsa_area_pool represents a set of objects of a given size class.
286281 *
@@ -326,7 +321,6 @@ typedef struct
326321Size freed_segment_counter ;
327322/* The LWLock tranche ID. */
328323int lwlock_tranche_id ;
329- char lwlock_tranche_name [DSA_MAXLEN ];
330324/* The general lock (protects everything except object pools). */
331325LWLock lock ;
332326}dsa_area_control ;
@@ -405,7 +399,7 @@ static void unlink_segment(dsa_area *area, dsa_segment_map *segment_map);
405399static dsa_segment_map * get_best_segment (dsa_area * area ,Size npages );
406400static dsa_segment_map * make_new_segment (dsa_area * area ,Size requested_pages );
407401static dsa_area * create_internal (void * place ,size_t size ,
408- int tranche_id ,const char * tranche_name ,
402+ int tranche_id ,
409403dsm_handle control_handle ,
410404dsm_segment * control_segment );
411405static dsa_area * attach_internal (void * place ,dsm_segment * segment ,
@@ -419,12 +413,10 @@ static void check_for_freed_segments(dsa_area *area);
419413 * We can't allocate a LWLock tranche_id within this function, because tranche
420414 * IDs are a scarce resource; there are only 64k available, using low numbers
421415 * when possible matters, and we have no provision for recycling them. So,
422- * we require the caller to provide one. The caller must also provide the
423- * tranche name, so that we can distinguish LWLocks belonging to different
424- * DSAs.
416+ * we require the caller to provide one.
425417 */
426418dsa_area *
427- dsa_create (int tranche_id , const char * tranche_name )
419+ dsa_create (int tranche_id )
428420{
429421dsm_segment * segment ;
430422dsa_area * area ;
@@ -446,7 +438,7 @@ dsa_create(int tranche_id, const char *tranche_name)
446438/* Create a new DSA area with the control objet in this segment. */
447439area = create_internal (dsm_segment_address (segment ),
448440DSA_INITIAL_SEGMENT_SIZE ,
449- tranche_id ,tranche_name ,
441+ tranche_id ,
450442dsm_segment_handle (segment ),segment );
451443
452444/* Clean up when the control segment detaches. */
@@ -474,12 +466,11 @@ dsa_create(int tranche_id, const char *tranche_name)
474466 */
475467dsa_area *
476468dsa_create_in_place (void * place ,size_t size ,
477- int tranche_id ,const char * tranche_name ,
478- dsm_segment * segment )
469+ int tranche_id ,dsm_segment * segment )
479470{
480471dsa_area * area ;
481472
482- area = create_internal (place ,size ,tranche_id ,tranche_name ,
473+ area = create_internal (place ,size ,tranche_id ,
483474DSM_HANDLE_INVALID ,NULL );
484475
485476/*
@@ -1139,7 +1130,7 @@ dsa_minimum_size(void)
11391130 */
11401131static dsa_area *
11411132create_internal (void * place ,size_t size ,
1142- int tranche_id ,const char * tranche_name ,
1133+ int tranche_id ,
11431134dsm_handle control_handle ,
11441135dsm_segment * control_segment )
11451136{
@@ -1192,7 +1183,6 @@ create_internal(void *place, size_t size,
11921183control -> refcnt = 1 ;
11931184control -> freed_segment_counter = 0 ;
11941185control -> lwlock_tranche_id = tranche_id ;
1195- strlcpy (control -> lwlock_tranche_name ,tranche_name ,DSA_MAXLEN );
11961186
11971187/*
11981188 * Create the dsa_area object that this backend will use to access the
@@ -1204,8 +1194,6 @@ create_internal(void *place, size_t size,
12041194area -> mapping_pinned = false;
12051195memset (area -> segment_maps ,0 ,sizeof (dsa_segment_map )* DSA_MAX_SEGMENTS );
12061196area -> high_segment_index = 0 ;
1207- LWLockRegisterTranche (control -> lwlock_tranche_id ,
1208- control -> lwlock_tranche_name );
12091197LWLockInitialize (& control -> lock ,control -> lwlock_tranche_id );
12101198for (i = 0 ;i < DSA_NUM_SIZE_CLASSES ;++ i )
12111199LWLockInitialize (DSA_SCLASS_LOCK (area ,i ),
@@ -1262,8 +1250,6 @@ attach_internal(void *place, dsm_segment *segment, dsa_handle handle)
12621250memset (& area -> segment_maps [0 ],0 ,
12631251sizeof (dsa_segment_map )* DSA_MAX_SEGMENTS );
12641252area -> high_segment_index = 0 ;
1265- LWLockRegisterTranche (control -> lwlock_tranche_id ,
1266- control -> lwlock_tranche_name );
12671253
12681254/* Set up the segment map for this process's mapping. */
12691255segment_map = & area -> segment_maps [0 ];