Skip to content

Commit

Permalink
[V63005] Resolve all conflicts (except msg.m) in merge of GT.M V6.3-0…
Browse files Browse the repository at this point in the history
…05 into YottaDB mainline

In general, most of the conflicts were resolved by incorporating the V6.3-005 changes as long as they can co-exist
with concurrent YottaDB changes. In case they cannot co-exist, the V6.3-005 changes were discarded.
In a lot of cases, the only conflict was because of gtm/GTM name usage vs ydb/YDB name usage. These conflicts
were resolved in a straightforward manner. Some of the conflict resolution though was not straightforward and
would benefit from some more comments which are described below.

* sr_port/gtm_string.h and sr_unix/util_output.c
  STRNCPY_LIT and STRNCPY_LIT_FULL macros are now removed as they are no longer used. This is because
  most of those usages were a source of buffer overflow warnings which meant fixing them to use something else.
  After incorporating V6.3-005 changes, the only remaining usage of STRNCPY_LIT in util_output.c is replaced
  with a MEMCPY_LIT (which is equivalent) but does not generate any buffer overflow warning like STRNCPY_LIT did.

* sr_port/have_crit.h
  deferred_exit_handling_check() is an inline function introduced in V63005. But since conflicting changes were
  made to the equivalent DEFERRED_SIGNAL_HANDLING_CHECK macro in YottaDB and it was hard to retrofit, the new
  inline function was discarded.

* sr_port/hd.mpt
  With V6.3-005 (GTM-5574), most of the numeric conversion functions use a new percent utility M program %CONVBASEUTIL.
  Since the changes involve enhancements to the range of numbers supported as well as some correctness fixes those
  were chosen instead of a conflicting YottaDB change (commit id afbb06e) without
  giving up the YottaDB-specific enhancement that hexadecimal numbers with a 0x or 0X prefix are supported.

* sr_port/line.c
  In my understanding, TREF(compile_time) is guaranteed to be TRUE while we are in line() so it was not clear to me
  why a check of whether it was 0 was done in V6.3-005 so that conflicting part has been removed and instead an
  assert has been added to ensure this understanding is correct. Otherwise the V6.3-005 change was picked so we
  call show_source_line() only if the CQ_WARNINGS flag is ON instead of calling it with a "warn" parameter that is
  set to TRUE or FALSE depending on this flag in prior YottaDB versions. I don't think it makes a difference to the
  user either ways but it seems better to go with the V6.3-005 change for show_source_line() invocation.

* sr_port/msg.m
  Every *errors_ctl.c file (e.g. merrors_ctl.c) now has a new section to list all undocumented messages in that file.
  This is printed as a LITDEF section with array names as gdeerrors_undocarr[], merrors_undocarr[] etc.
  This is now incorporated into the YottaDB version of msg.m (which generates the files differently than GT.M since r1.20).

* sr_port/mstack_size_init.c and sr_port/mstack_size_init.h
  V6.3-005 adds a new env var gtm_mstack_crit_threshold. This is now folded into a new entry in sr_port/ydb_logicals_tab.h.
  And corresponding changes made to this file to use the index of the new entry here.
  Macro names MSTACK_CRIT_MIN_RANGE, MSTACK_CRIT_MAX_RANGE, MSTACK_CRIT_DEF_RANGE have been renamed to use THRESHOLD
  instead of RANGE to be in sync with the env var name which has "threshold" (not range) in it.

* sr_port/objlabel.h
  V6.3-005 bumps the GT.M object file format. Now that those changes are incorporated into YottaDB, the YottaDB
  object file format is bumped from 4 to 5.

* sr_port/op_zg1.c
  The change in V6.3-005 to this module seems to be from GTM-8943 to ensure a ZGOTO O inside a call-in returns to the
  parent C caller. This was already taken care of in #32. So the V6.3-005 change is discarded.

* sr_port/parm_pool.c and sr_port/push_parm_src.h
  The V6.3-005 changes included added comments on function parameters of push_parm(). But since this function had previously
  been moved to sr_port/push_parm_src.h in YottaDB, the new comments have been moved there instead.

* sr_port/view_arg_convert.c
  The V6.3-005 change to this module used the stringpool as a temporary storage before calling format2zwr().
  It had the following reasoning.
       * here & 2 other places use stringpool because we use format2zwr to ensure the message is graphic
       * & we don't return from the rts_error, so a fixed or malloc'd location seems even less attractive
  But I do not understand the above reasoning as we currently use a stack variable (which is neither fixed like
  a global variable, or malloced) and that storage goes away after the rts_error. And since YottaDB had fixed a lot
  more issues with VIEW and $VIEW (#224) in r1.22, those change are considered and the V6.3-005 changes
  are discarded.

* sr_unix/cli_parse.c
  V6.3-005 changed this file to use strncpy and pass the entire allocated buffer length which meant the buffer will be
  zero filled after the input string is copied. Since the allocated buffer length is MAX_LINE (greater than 32Kb), and
  since input command lines are less than a 100 bytes, that is a lot of zero filling done (almost 32Kb of zero filling)
  every time the strncpy() call. So the V6.3-005 change was discarded. YottaDB had already addressed the gcc 8.1 compiler
  warning differently (which is probably what prompted the V6.3-005 change) and that did not have this unnecessary
  overhead so that was kept as is.

* sr_unix/gt_timers.c
  Conflicts were resolved by changing any place where deferred_timers_check_needed was set to FALSE or TRUE in V6.3-005
  to instead use CLEAR_DEFERRED_TIMERS_CHECK_NEEDED or SET_DEFERRED_TIMERS_CHECK_NEEDED macros.

* sr_unix/gtmci.c, sr_port/tp_restart.c and sr_unix/gtm_filter_command.c
  Any new usages of "frame_pointer->flags & SFF_CI" in V6.3-005 were replaced with "frame_pointer->type & SFT_CI" since
  SFF_CI is no longer present in YottaDB (nixed as part of #32). Not yet sure if there are any subtle
  issues with this change. Will investigate as we find any issues while coming up with test cases for GTM-8877
  (the ability to invoke an M filter from a C function) which is what triggered the SFF_CI changes in V6.3-005.

* sr_unix/gtmci.c
  V6.3-005 had some changes to CITPNESTED error. But since this error no longer issued in YottaDB (since nested call-ins
  are allowed in TP due to #188), those changes were discarded.

* sr_unix/gtmrecv.c and sr_unix/gtmsource.c
  The V6.3-005 changes (due to GTM-8954) were discarded as similar changes were already made in #210.
  In fact, with the GT.M V63005 changes, the r110/srcsrv_extfilter_sig11 subtest failed because stdout in source server
  was still pointing to /dev/null instead of source server log file resulting in messages related to the internal filter
  stopping not showing up in source server log. No such issues show up with #210 so that is kept.

* sr_unix/gtmsource.h and sr_unix/gtmsource_inline.h
  The JPL_PHASE2_WRITE_COMPLETE macro is now changed to an inline function jpl_phase2_write_complete() in V6.3-005.
  That change is incorporated with minor changes in names of variables etc. (gtm to ydb).

* sr_unix/gvcst_init_sysops.c and sr_unix/mu_rndwn_file.c
  V6.3-005 changed this module to ensure we never use gtmsecshr to flush the db file header in case db has the READ_ONLY
  characteristic turned ON. This is similar to what was already done (amongst many other changes) in #150.
  So the V6.3-005 change was discarded.

* sr_unix/jnl_prc_vector.c
  V6.3-005 had changed SNPRINTF to use macros JPV_LEN_USER and JPV_LEN_PRCNAM. In YottaDB though, the same code was
  changed to address a gcc 8.1 compiler warning and that used SIZEOF(pv->jpv_user) and SIZEOF(pv->jpv_prcnam). Both
  usages are equivalent right now but could become different if the macros are changed inadvertently. The SIZEOF usage
  is safer since it ensures we never go beyond the allocated memory (i.e. no buffer overflows) so the YottaDB change is kept
  and the V6.3-005 change is discarded.

* sr_unix/jobchild_init.c and sr_x86_64/opp_ciret.s
  V6.3-005 introduced changes to invoke opp_ciret() (a new assembly routine) in case of x86_64 else invoke ci_ret_code_exit().
  Not sure why this was necessary. #32 removed the need for ci_ret_code_exit() altogether so it is suspected
  that makes the new opp_ciret() also unnecessary. Therefore the V6.3-005 change is discarded and the new .s file nixed.

* sr_unix/mupip_dump_fhead.c
  The V6.3-005 change was accepted/incorporated with a small name change (GTM_PATH_MAX -> YDB_PATH_MAX).

* sr_unix/mupip_set_file.c
  The V6.3-005 change was due to GTM-8957. This change was already done (and in a more comprehensive fashion) by
  #150. So the V6.3-005 change was discarded.

* sr_unix/op_fnzsearch.c
  The V6.3-005 change was due to GTM-8990. But #228 addresses the same issue in a better fashion in my
  understanding so the V6.3-005 change was discarded.

* sr_unix/rel_crit.c and sr_unix/rel_lock.c
  DEFERRED_EXIT_HANDLING_CHECK macro in GT.M translates to DEFERRED_SIGNAL_HANDLING_CHECK macro in YottaDB.
  So if the GT.M macro was removed, the corresponding YottaDB macro was removed etc. The GT.M changes were accepted.

* sr_unix/relinkctl.c
  V6.3-005 used OBJ_PLATFORM_LABEL to generate the relinkctl key file name. Since this macro was long obsoleted in YottaDB,
  that particular line was removed and the rest of the V6.3-005 changes were accepted.

* sr_unix/sleep.h
  The V6.3-005 change was accepted except E_9 usages were changed to the more descriptive NANOSECS_IN_SEC.

* sr_unix/suspend.c
  The V6.3-005 change was discarded as it moved the set of "suspend_status" before the send_msg_csa. But this variable
  had been nixed in #215 and replaced with a "is_suspended" global variable which is never used anywhere
  but is there only to indicate the process is suspended. Moving this global variable before the send_msg_csa() should
  not affect anything (i.e. no recursion because this variable is never used anywhere).
  • Loading branch information
nars1 committed Jul 23, 2018
1 parent 65693f4 commit ae41934
Show file tree
Hide file tree
Showing 88 changed files with 253 additions and 3,255 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,7 @@ foreach(lang ${languages})
endforeach()

# Defaults
<<<<<<< HEAD
set(version r123)
=======
set(version V6.3-005)
if("${version}" STREQUAL "")
set(version V9.9-0)
endif()
>>>>>>> df1555e... GT.M V6.3-005

# If CMAKE_BUILD_TYPE is not defined make it a Release build
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
Expand Down
21 changes: 1 addition & 20 deletions sr_linux/release_name.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
****************************************************************/

#ifndef GTM_RELEASE_NAME
<<<<<<< HEAD

#define GTM_VERSION "V6.3"
#define GTM_ZVERSION "V6.3-004"
#define GTM_ZVERSION "V6.3-005"
#define YDB_ZYRELEASE "r1.23"

/* Note: YDB_RELEASE_STAMP is set as part of the cmake build process.
Expand All @@ -36,30 +35,12 @@
# define YDB_PLATFORM "Linux armv7l"
#else
# define YDB_PLATFORM "Linux x86"
=======
#ifdef __CYGWIN__
#define GTM_RELEASE_NAME "GT.M V6.3-005 CYGWIN x86"
#elif defined(__ia64)
#define GTM_RELEASE_NAME "GT.M V6.3-005 Linux IA64"
#elif defined(__x86_64__)
#define GTM_RELEASE_NAME "GT.M V6.3-005 Linux x86_64"
#elif defined(__s390__)
#define GTM_RELEASE_NAME "GT.M V6.3-005 Linux S390X"
#else
#define GTM_RELEASE_NAME "GT.M V6.3-005 Linux x86"
#endif
>>>>>>> df1555e... GT.M V6.3-005
#endif

#define GTM_RELEASE_NAME "GT.M" " " GTM_ZVERSION " " YDB_PLATFORM
#define YDB_RELEASE_NAME "YottaDB" " " YDB_ZYRELEASE " " YDB_PLATFORM
#define YDB_AND_GTM_RELEASE_NAME GTM_RELEASE_NAME " " "YottaDB" " " YDB_ZYRELEASE
#define GTM_PRODUCT "GT.M"
<<<<<<< HEAD
#define YDB_PRODUCT "YottaDB"

#endif
=======
#define GTM_VERSION "V6.3"
#define GTM_RELEASE_STAMP "20180625 11:40"
>>>>>>> df1555e... GT.M V6.3-005
4 changes: 0 additions & 4 deletions sr_port/anticipatory_freeze.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,10 @@ MBSTART { \
assert(!CSA_LOCAL || !CSA_LOCAL->region || FILE_INFO(CSA_LOCAL->region)->grabbed_access_sem \
|| !(CSA_LOCAL)->nl || !FROZEN_CHILLED(CSA_LOCAL) || FREEZE_LATCH_HELD(CSA_LOCAL)); \
DBG_CHECK_DIO_ALIGNMENT(UDI, OFFSET, BUFF, SIZE); \
<<<<<<< HEAD
/* We should never write to a READ_ONLY db file header unless we hold standalone access on the db */ \
assert((0 != OFFSET) || !((sgmnt_data_ptr_t)BUFF)->read_only || (NULL == UDI) || UDI->grabbed_access_sem); \
DO_LSEEKWRITE(CSA_LOCAL, DB_FN, FD, OFFSET, BUFF, SIZE, STATUS, fake_db_enospc, LSEEKWRITE_IS_TO_DB); \
=======
DO_LSEEKWRITE(CSA_LOCAL, DB_FN, FD, OFFSET, BUFF, SIZE, STATUS, fake_db_enospc, DB_LSEEKWRITE_HANG(CSA), \
LSEEKWRITE_IS_TO_DB); \
>>>>>>> df1555e... GT.M V6.3-005
} MBEND

/* This is similar to DB_LSEEKWRITE except that this is used by GTMSECSHR and since that is root-owned we do not want
Expand Down
7 changes: 0 additions & 7 deletions sr_port/dse.hlp
Original file line number Diff line number Diff line change
Expand Up @@ -2980,14 +2980,7 @@

**Note**

<<<<<<< HEAD
This help file is a concise representation of the revision r1.22 of the
Administration and Operations Guide. To obtain a copy of the current
revision, go to https://docs.yottadb.com/AdminOpsGuide/index.html.
=======
This help file is a concise representation of revision V6.3-005 of the
UNIX Administration and Operations Guide. To obtain a copy of the current
revision, go to www.fis-gtm.com and then click on the User Documentation
tab.
>>>>>>> df1555e... GT.M V6.3-005

8 changes: 1 addition & 7 deletions sr_port/gbldefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,9 @@ GBLDEF int4 backup_close_errno,
forced_exit_err,
exit_state,
restore_read_errno;
<<<<<<< HEAD
GBLDEF volatile int4 outofband, crit_count;
GBLDEF volatile int4 outofband;
GBLDEF int mumps_status = SS_NORMAL;
GBLDEF gtm_uint64_t stp_array_size;
=======
GBLDEF volatile int4 outofband;
GBLDEF int mumps_status = SS_NORMAL,
stp_array_size;
>>>>>>> df1555e... GT.M V6.3-005
GBLDEF gvzwrite_datablk *gvzwrite_block;
GBLDEF lvzwrite_datablk *lvzwrite_block;
GBLDEF io_log_name *io_root_log_name;
Expand Down
17 changes: 2 additions & 15 deletions sr_port/gde.hlp
Original file line number Diff line number Diff line change
Expand Up @@ -1437,17 +1437,11 @@

-[NO][STA[TS]

<<<<<<< HEAD
Specifies whether YottaDB should permit processes to share their database
access statistics for other processes to monitor. There may be operational
or security reasons to prohibit sharing of statistics. For example, YottaDB
=======
Specifies whether GT.M should permit processes to share their database
access statistics for other processes to monitor. When on, this
characteristic causes GT.M to create a small MM database for the
characteristic causes YottaDB to create a small MM database for the
associated region to hold the shared statistics. There may be operational
or security reasons to prohibit sharing of statistics. For example, GT.M
>>>>>>> df1555e... GT.M V6.3-005
or security reasons to prohibit sharing of statistics. For example, YottaDB
does not share statistics on database files that exist solely to support
YottaDB features.

Expand Down Expand Up @@ -2200,14 +2194,7 @@

**Note**

<<<<<<< HEAD
This help file is a concise representation of the revision r1.22 of the
Administration and Operations Guide. To obtain a copy of the current
revision, go to https://docs.yottadb.com/AdminOpsGuide/index.html.
=======
This help file is a concise representation of revision V6.3-005 of the
UNIX Administration and Operations Guide. To obtain a copy of the current
revision, go to www.fis-gtm.com and then click on the User Documentation
tab.
>>>>>>> df1555e... GT.M V6.3-005

7 changes: 1 addition & 6 deletions sr_port/gdeerrors.msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
! Copyright (c) 2001-2018 Fidelity National Information !
! Services, Inc. and/or its subsidiaries. All rights reserved. !
! !
! Copyright (c) 2017 YottaDB LLC. and/or its subsidiaries. !
! Copyright (c) 2017-2018 YottaDB LLC. and/or its subsidiaries. !
! All rights reserved. !
! !
! This source code contains the intellectual property !
Expand All @@ -14,16 +14,11 @@
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.FACILITY GDE, 248 /PREFIX = GDE_
<<<<<<< HEAD
.TITLE GDEERRORS Error Messages For GDE

=======
.TITLE GDEERRORS Error Messages for GDE
!
! List of known undocumented messages follows (along with a comment) (do not change "known undocumented" phrase)
! ----- Buffer to introduce new undocumented error messages without affecting UNUSEDMSGnnn match with corresponding line numbers.
!
>>>>>>> df1555e... GT.M V6.3-005
BLKSIZ512 <Block size !AD rounds to !AD>/info/fao=4
EXECOM <Executing command file !AD>/info/fao=2
FILENOTFND <File !AD not found>/error/fao=2
Expand Down
6 changes: 3 additions & 3 deletions sr_port/gdeerrors_ctl.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************
* *
* Copyright (c) 2001-2018 Fidelity National Information *
* Copyright (c) 2001-2018 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
* *
* Copyright (c) 2017-2018 YottaDB LLC. and/or its subsidiaries.*
Expand Down Expand Up @@ -106,12 +106,12 @@ LITDEF err_msg gdeerrors[] = {
};


GBLDEF err_ctl gdeerrors_ctl = {


LITDEF int gdeerrors_undocarr[] = {
};


GBLDEF err_ctl gdeerrors_ctl = {
248,
"GDE",
&gdeerrors[0],
Expand Down
12 changes: 0 additions & 12 deletions sr_port/gdeinitsz.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;
<<<<<<< HEAD
=======
; Generated by scantypedefs.m at 13:36:43 on 2018-06-22
; Build done with GT.M version: GT.M V6.3-003A Linux x86_64
;
; Environment variables during run:
; $gtm_dist: /usr/library/V63003A/dbg
; $gtm_exe: /usr/library/V63005/dbg
; $gtm_src: /usr/library/V63005/src
; $gtm_inc: /usr/library/V63005/inc
;
>>>>>>> df1555e... GT.M V6.3-005
; Note this file should not be manually invoked
;
Write "This routine (",$TEXT(+0),") should not be manually invoked",!
Expand Down
9 changes: 2 additions & 7 deletions sr_port/gds_blk_downgrade.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,9 @@ void gds_blk_downgrade(v15_blk_hdr_ptr_t gds_blk_trg, blk_hdr_ptr_t gds_blk_src)
* See comment in wcs_wtstart.c against similar assert (as below) for when this is possible.
*/
assert(0 == bsiz);
<<<<<<< HEAD
assert(ydb_white_box_test_case_enabled
&& (WBTEST_CRASH_SHUTDOWN_EXPECTED == ydb_white_box_test_case_number));
=======
assert(gtm_white_box_test_case_enabled
&& ((WBTEST_CRASH_SHUTDOWN_EXPECTED == gtm_white_box_test_case_number)
|| (WBTEST_MURUNDOWN_KILLCMT06 == gtm_white_box_test_case_number)));
>>>>>>> df1555e... GT.M V6.3-005
&& ((WBTEST_CRASH_SHUTDOWN_EXPECTED == ydb_white_box_test_case_number)
|| (WBTEST_MURUNDOWN_KILLCMT06 == ydb_white_box_test_case_number)));
return;
}
assert(GDSVCURR == gds_blk_src->bver);
Expand Down
11 changes: 1 addition & 10 deletions sr_port/gtm_env_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,10 @@ void gtm_env_init(void)
tdbglvl |= GDL_SmBackfill; /* Can't check it unless it's filled in */
if (GDL_SmStorHog & tdbglvl)
tdbglvl |= GDL_SmBackfill | GDL_SmChkAllocBackfill;
<<<<<<< HEAD
ydbDebugLevel |= tdbglvl;
ydbSystemMalloc = (GDL_UseSystemMalloc & ydbDebugLevel);
if (ydbSystemMalloc)
ydbDebugLevel &= !(GDL_SmStats | GDL_SmTrace | GDL_SmDumpTrace | GDL_SmAllocVerf | GDL_SmFreeVerf
| GDL_SmBackfill | GDL_SmChkAllocBackfill | GDL_SmChkFreeBackfill
| GDL_SmStorHog | GDL_SmDump );
=======
gtmDebugLevel |= tdbglvl;
gtmSystemMalloc = ((GDL_UseSystemMalloc & gtmDebugLevel) || FALSE);
if (gtmSystemMalloc)
gtmDebugLevel &= !GDL_SmAllMallocDebug;
>>>>>>> df1555e... GT.M V6.3-005
ydbDebugLevel &= !GDL_SmAllMallocDebug;
}
/* See if ydb_msgprefix is specified. If so store it in TREF(ydbmsgprefix).
* Note: Default value is already stored in "gtm_threadgbl_init".
Expand Down
35 changes: 5 additions & 30 deletions sr_port/gtm_malloc_src.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@
#endif

/* #GTM_THREAD_SAFE : The below macro (MALLOC) is thread-safe because caller ensures serialization with locks */
<<<<<<< HEAD
# define MALLOC(size, addr) \
{ \
intrpt_state_t prev_intrpt_state; \
\
assert(IS_PTHREAD_LOCKED_AND_HOLDER); \
if (!ydbSystemMalloc \
&& (0 < ydb_max_storalloc) && ((size + totalRmalloc + totalRallocGta) > ydb_max_storalloc)) \
Expand All @@ -123,38 +124,16 @@
gtmMallocErrorErrno = ERR_MALLOCMAXUNIX; \
raise_gtmmemory_error(); \
} \
DEFER_INTERRUPTS(INTRPT_IN_FUNC_WITH_MALLOC, prev_intrpt_state); \
addr = (void *)malloc(size); \
ENABLE_INTERRUPTS(INTRPT_IN_FUNC_WITH_MALLOC, prev_intrpt_state); \
if (NULL == (void *)addr) \
{ \
gtmMallocErrorSize = size; \
gtmMallocErrorCallerid = CALLERID; \
gtmMallocErrorErrno = errno; \
raise_gtmmemory_error(); \
} \
=======
# define MALLOC(size, addr) \
{ \
intrpt_state_t prev_intrpt_state; \
assert(IS_PTHREAD_LOCKED_AND_HOLDER); \
if (!gtmSystemMalloc \
&& (0 < gtm_max_storalloc) && ((size + totalRmalloc + totalRallocGta) > gtm_max_storalloc)) \
{ /* Boundary check for $gtm_max_storalloc (if set) */ \
gtmMallocErrorSize = size; \
gtmMallocErrorCallerid = CALLERID; \
gtmMallocErrorErrno = ERR_MALLOCMAXUNIX; \
raise_gtmmemory_error(); \
} \
DEFER_INTERRUPTS(INTRPT_IN_FUNC_WITH_MALLOC, prev_intrpt_state); \
addr = (void *)malloc(size); \
ENABLE_INTERRUPTS(INTRPT_IN_FUNC_WITH_MALLOC, prev_intrpt_state); \
if (NULL == (void *)addr) \
{ \
gtmMallocErrorSize = size; \
gtmMallocErrorCallerid = CALLERID; \
gtmMallocErrorErrno = errno; \
raise_gtmmemory_error(); \
} \
>>>>>>> df1555e... GT.M V6.3-005
}
# define FREE(size, addr) free(addr);
#define MAXBACKFILL (16 * 1024) /* Maximum backfill of large structures */
Expand Down Expand Up @@ -695,11 +674,7 @@ void *gtm_malloc(size_t size) /* Note renamed to gtm_malloc_dbg when included in
* if this is the normal (default/optimized) case we will fall into the code
* and handle the rerouting at the end.
*/
<<<<<<< HEAD
if (GDL_None == ydbDebugLevel)
=======
if (!(gtmDebugLevel & GDL_SmAllMallocDebug))
>>>>>>> df1555e... GT.M V6.3-005
if (!(ydbDebugLevel & GDL_SmAllMallocDebug))
{
# endif
/* Note that this if is also structured for maximum fallthru. The else will
Expand Down
5 changes: 0 additions & 5 deletions sr_port/gtm_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@

#define STRERROR strerror
#define STRCPY(DEST, SOURCE) strcpy((char *)(DEST), (char *)(SOURCE))
<<<<<<< HEAD
#define STRNCPY_LIT(DEST, LITERAL) memcpy((char *)(DEST), (char *)(LITERAL), SIZEOF(LITERAL) - 1) /* BYPASSOK */
#define STRNCPY_LIT_FULL(DEST, LITERAL) strncpy((char *)(DEST), (char *)(LITERAL), SIZEOF(LITERAL)) /* BYPASSOK */
=======
>>>>>>> df1555e... GT.M V6.3-005
#define STRNCPY_STR(DEST, STRING, LEN) strncpy((char *)(DEST), (char *)(STRING), LEN)
#define STRCMP(SOURCE, DEST) strcmp((char *)(SOURCE), (char *)(DEST))
#define STRNCMP_LIT(SOURCE, LITERAL) strncmp(SOURCE, LITERAL, SIZEOF(LITERAL) - 1) /* BYPASSOK */
Expand Down
8 changes: 2 additions & 6 deletions sr_port/gvcst_data.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/****************************************************************
* *
<<<<<<< HEAD
* Copyright 2001, 2013 Fidelity Information Services, Inc *
* Copyright (c) 2001-2018 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
* *
* Copyright (c) 2018 YottaDB LLC. and/or its subsidiaries. *
* All rights reserved. *
=======
* Copyright (c) 2001-2018 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
>>>>>>> df1555e... GT.M V6.3-005
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
Expand Down
4 changes: 0 additions & 4 deletions sr_port/gvcst_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,18 +859,14 @@ void gvcst_init(gd_region *reg, gd_addr *addr)
reg->jnl_before_image = csd->jnl_before_image;
reg->dyn.addr->asyncio = csd->asyncio;
reg->dyn.addr->read_only = csd->read_only;
<<<<<<< HEAD
/* reg->read_only would have already been set to TRUE or FALSE depending on the file permissions.
* Now check if the READ_ONLY flag in the db file header is TRUE, if so set reg->read_only also
* to TRUE (just like is done in "db_init").
*/
if (csd->read_only)
reg->read_only = TRUE;
assert(csa->reservedDBFlags == csd->reservedDBFlags); /* Should be same already */
=======
assert((RDBF_NOSTATS & csd->reservedDBFlags) ? (csa->reservedDBFlags == csd->reservedDBFlags)
: ((~RDBF_NOSTATS & csa->reservedDBFlags) == csd->reservedDBFlags)); /* suitably aligned*/
>>>>>>> df1555e... GT.M V6.3-005
SYNC_RESERVEDDBFLAGS_REG_CSA_CSD(reg, csa, csd, ((node_local_ptr_t)NULL));
SET_REGION_OPEN_TRUE(reg, WAS_OPEN_TRUE);
assert(1 <= csa->regcnt);
Expand Down
8 changes: 2 additions & 6 deletions sr_port/gvcst_order.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/****************************************************************
* *
<<<<<<< HEAD
* Copyright 2001, 2013 Fidelity Information Services, Inc *
* Copyright (c) 2001-2018 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
* *
* Copyright (c) 2018 YottaDB LLC. and/or its subsidiaries. *
* All rights reserved. *
=======
* Copyright (c) 2001-2018 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
>>>>>>> df1555e... GT.M V6.3-005
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
Expand Down
Loading

0 comments on commit ae41934

Please sign in to comment.